import React, { Component } from 'react';
import pubSub from 'pubsub-js';
 class App extends Component {
 render(){
   return (
     <div>Child</div>
   )
     }
     componentDidMount() {
         pubSub.subscribe('one', (msgName,{ a, b, c, d }) => {
            console.log("Child组件,回调执行接收数据:",msgName,a, b, c, d)
        })
     }
}
 export default App;